package org.scmpatrol.scm;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang.ObjectUtils;

/**
 * SCMRevision is an scm-patrol internal view of a commit.<br>
 * It is composed of a list of underlying scm commit
 * 
 * 
 * @author 
 *
 */

public class SCMRevision implements Serializable {

	private static final long serialVersionUID = 7743120632890875615L;

	String revisionId;
	
	List<SCMCommit> commits = new ArrayList<SCMCommit>();

	public String getRevisionId() {
		return revisionId;
	}

	public void setRevisionId(String revisionId) {
		this.revisionId = revisionId;
	}

	public List<SCMCommit> getCommits() {
		return commits;
	}

	public void setCommits(List<SCMCommit> commits) {
		this.commits = commits;
	}
	
	public String toString() {
		return ObjectUtils.toString(this);
	}
	
	
}